package com.guohengspace.mq.service.impl;

import com.guohengspace.mq.common.ResponseResult;
import com.guohengspace.mq.service.OrganizationService;
import com.guohengspace.mq.utils.EipUtil;
import lombok.extern.slf4j.Slf4j;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Slf4j
@Service
public class OrganizationServiceImpl implements OrganizationService {
    private static final Logger logger = LoggerFactory.getLogger(OrganizationServiceImpl.class);
    @Autowired
    EipUtil eipUtil;


    @Override
    public ResponseResult getOrganizationList() {
        ResponseResult result = eipUtil.CallAliYunASCM("GetOrganizationList", null);
        return result;
    }

    @Override
    public ResponseResult listResourceGroupByOrgId(String organizationId) {
        ResponseResult result = eipUtil.CallAliYunASCM("ListResourceGroupByOrgId", organizationId);
        return result;
    }
}
